

import {axios,get,post} from "./request"

 

export const $http = {
  
    use:(body)=>get("/sta/use",body),
    register:body=>post("/sta/register",body),
    login:body=>post("/sta/login",body),
    sendcaptcha:body=>post("/sta/sendcaptcha",body),
    checkcaptcha:body=>post("/sta/checkcaptcha",body),
    uploadavatar:body=>post("/sta/uploadavatar",body),
    getuserinfo:body=>get("/sta/getuserinfo",body),
}